<?php
namespace app\Controllers;
use app\Models\AdminModel as Admin;

class AdminController {
	public function Login($request, $response) {
		$username = $request -> getParam("username");
		$password = $request -> getParam("password");
		$model = new Admin();
		$result = $model -> LoginModel($username, $password);
//		var_dump($result);
		echo json_encode($result);
	}

}
?>